Control device, creation method for learning model, learning model, computer program and storage medium

ABSTRACT

A control device for a human-powered vehicle including a control unit is provided. The control device controls a telescopic mechanism in accordance with output information related to controlling the telescopic mechanism that is output from a learning model in association with input information related to traveling of the human-powered vehicle. A method for creating the learning model, the learning model, and a computer-readable storage medium are also provided.

TECHNICAL FIELD

The present invention relates to a control device related to controllinga component of a human-powered vehicle, a method of creating a learningmodel, a learning model, and a computer-readable storage medium.

BACKGROUND ART

Human-powered vehicles at least partially utilizing human power havebeen known, including a bicycle, a power-assisted bicycle, an electricbicycle called an e-bike and so on. A human-powered vehicle is providedwith multiple components including a transmission, a brake device, aseat post, a suspension or the like. A method of transmitting anoperation instruction by a wireless communication signal to each of themultiple components as well as the transmission has been proposed(Patent Document 1).

PRIOR ART DOCUMENT Patent Document

-   [Patent Document 1] Japanese Patent Application Laid-Open No.    2018-089989

SUMMARY OF INVENTION Problems to be Solved by Invention

Out of the multiple components of a human-powered vehicle, a seat postand a suspension having a telescopic mechanism are associated withvibrations that have great influence on the riding comfort of thehuman-powered vehicle. The riding comfort of the human-powered vehiclecan be improved and riding can be made to be more efficient requiringless power through the use of a seat post and suspension to suppressvibrations, and adjusting a spring coefficient thereof to an appropriatevalue. Proper skill is required for the rider to appropriately controlthe seat post and the suspension during riding. It would be desirable toprovide an optimum automatic control that is based on a travelingcondition, a road surface condition, and/or a traveling purpose.

It is an object of the present invention to provide a component controldevice for optimally performing automatic control of a component havinga telescopic mechanism, a method of creating a learning model, alearning model, and a computer-readable storage medium.

Means for Solving Problems

A control device according to a first aspect of the present inventioncomprises a control unit that controls a telescopic mechanism inaccordance with output information related to controlling the telescopicmechanism, wherein the output information is output from a learningmodel in association with input information related to traveling of ahuman-powered vehicle.

This achieves automatic control of the telescopic mechanism adapted tovarious situations or traveling environments in accordance with varietyof input information related to traveling of the human-powered vehicle.

In a control device according to a second aspect of the presentinvention, the telescopic mechanism is a suspension of the human-poweredvehicle, and the output information includes at least one of a strokelength, a locked state, a spring force and a damping rate.

This achieves automatic control of the suspension of the human-poweredvehicle adapted to various situations or traveling environments inaccordance with variety of input information related to traveling of thehuman-powered vehicle.

In a control device according to a third aspect of the presentinvention, the suspension includes a first member and a second membermovably mounted to the first member, and the input information includesfirst acceleration output by a first acceleration sensor provided to thefirst member and second acceleration output by a second accelerationsensor provided to the second member.

This achieves automatic control of the suspension adapted to the groundsurface condition in accordance with the information related to thevibration obtained from the acceleration sensor provided to the movablemember, in accordance to traveling of the human-powered vehicle.

In a control device according to a fourth aspect of the presentinvention, the learning model outputs the output information such that adifference between the first acceleration and the second accelerationfalls within a predetermined range.

This achieves automatic control of the suspension that allows theabsorption of the vibration to fall within an appropriate range whilebeing adapted to the road surface conditions, in accordance to travelingof the human-powered vehicle.

In a control device according to a fifth aspect of the presentinvention, the telescopic mechanism is a seat post of the human-poweredvehicle, and the output information includes at least one of a seatheight, an inclination of a seat surface, a position in a front-backdirection and a position in a right-left direction.

This achieves automatic control of the seat post of the human-poweredvehicle adapted to various situations or traveling environments inaccordance with variety of input information related to traveling of thehuman-powered vehicle.

In a control device according to a sixth aspect of the presentinvention, the input information includes at least one of travelinginformation of the human-powered vehicle and traveling environmentinformation of the human-powered vehicle.

This achieves automatic control of the telescopic mechanism adapted totraveling environments, related to traveling of the human-poweredvehicle.

In a control device according to a seventh aspect of the presentinvention, the traveling information includes at least one of atraveling speed of the human-powered vehicle, acceleration of thehuman-powered vehicle, an attitude of the human-powered vehicle, acadence of a crank of the human-powered vehicle, a driving force of thehuman-powered vehicle, a load balance of the human-powered vehicle, agear ratio of the human-powered vehicle, an operation amount of a brakeof the human-powered vehicle and physical information of a user.

This achieves automatic control of the telescopic mechanism adapted tovarious situations or traveling environments in accordance with varietyof input information related to traveling of the human-powered vehicle.

In a control device according to an eighth aspect of the presentinvention, the traveling environment information of the human-poweredvehicle includes at least one of a ground contact state of wheels, aroad surface condition, position information and weather.

This achieves automatic control of the telescopic mechanism adapted tovarious situations or traveling environments in accordance with varietyof input information related to traveling of the human-powered vehicle.

In a control device according to a ninth aspect of the presentinvention, the control unit outputs details of controlling thetelescopic mechanism to a notification unit which notifies the user ofthe details.

This achieves automatic control that allows the user to recognize thedetails of the control of the telescopic mechanism adapted to varioussituations or traveling environments in accordance with variety of inputinformation related to traveling of the human-powered vehicle withoutcausing discomfort.

A control device according to a tenth aspect of the present inventionfurther comprises an evaluation unit that evaluates the outputinformation, and the learning model is updated in accordance with anevaluation by the evaluation unit

This achieves automatic control of the telescopic mechanism appropriatefor the riding characteristics and the preference of the user being therider of the human-powered vehicle.

In a control device according to an eleventh aspect of the presentinvention, the evaluation part evaluates the output information inaccordance with post-control input information when the inputinformation is obtained after the control part controls the telescopicmechanism.

This achieves automatic control of the telescopic mechanism suited forthe riding characteristics and the preference of the user being therider of the human-powered vehicle.

A control device according to a twelfth aspect of the present inventionfurther comprises an operation unit that accepts a predeterminedoperation related to the output information, and the output informationis evaluated in accordance with a comparison between post-control outputinformation output from the learning model related to the post-controlinput information and the predetermined operation.

This achieves automatic control of the telescopic mechanism adapted tothe details of the operation in accordance with the ridingcharacteristics and the preference of the user of the human-poweredvehicle.

In a control device according to a thirteenth aspect of the presentinvention, the learning model is prepared for each traveling course thehuman-powered vehicle travels and accepts a selection of the travelingcourse, the control unit controls the telescopic mechanism in accordancewith the output information output in association with the inputinformation from the learning model corresponding to the selectedtraveling course.

This achieves automatic control of the telescopic mechanism adapted tovarious situations or traveling environments in accordance with varietyof input information for a traveling course of the human-poweredvehicle.

A method creating a learning model according to the fourteenth aspect ofthe present invention comprises: employing, in a case where inputinformation related to traveling of the human-powered vehicle is input,a neural network that outputs output information related to controllinga telescopic mechanism of components of a human-powered vehicle;acquiring input information related to traveling of the human-poweredvehicle; identifying output information output by providing the neuralnetwork with the acquired input information; and learning, when thetelescopic mechanism is controlled in accordance with the identifiedoutput information, parameters in an intermediate layer of the neuralnetwork by the computer so as to improve the evaluation of a travelingstate of the human-powered vehicle.

Thus, the learning model is created such that output information forcontrolling the telescopic mechanism in accordance with variety of inputinformation related to traveling of the human-powered vehicle is outputso as to be adapted to various situations or traveling environments. Byusing the output information output from the learning model, appropriateautomatic control can be achieved depending on the situations and thetraveling environments.

A processor configured to execute a learning model according to thefifteenth aspect of the present invention, wherein the learning modelcomprises: an input layer to be provided with input information relatedto traveling of a human-powered vehicle; an output layer providingoutput information related to controlling a component of thehuman-powered vehicle, the component having a telescopic mechanism; andan intermediate layer having parameters, the intermediate layer beingconfigured to learn to improve an evaluation of a traveling state of thehuman-powered vehicle as the component is being controlled in accordancewith the output information outputted from the output layer, wherein thelearning model is configured to execute a calculation in theintermediate layer as the input information is being inputted to theinput layer, and to output information related to controlling thecomponent from the output layer.

This achieves appropriate automatic control depending on the situationsand the traveling environments by using a trained machine learning modelthat outputs output information for controlling the telescopic mechanismin accordance with variety of input information related to traveling ofthe human-powered vehicle.

A computer-readable storage medium according to the sixteen aspectcomprises instructions configured to be executed by a processor of acomputer, the instructions including: employing, in a case where inputinformation related to traveling of the human-powered vehicle is input,a neural network that outputs output information related to controllinga component having a telescopic mechanism of components of ahuman-powered vehicle; acquiring input information related to travelingof the human-powered vehicle; identifying output information outputtedby providing the neural network with the acquired input information; andlearning, in a case where the component is controlled in accordance withthe identified output information, parameters in an intermediate layerof the neural network so as to improve the evaluation of comfortabilityby a rider of the human-powered vehicle.

Thus, the learning model is created by instructions stored on thecomputer-readable storage medium of the computer such that outputinformation for controlling the telescopic mechanism in accordance withvariety of input information related to traveling of the human-poweredvehicle is output, so as to be adapted to various situations ortraveling environments. By using the output information output by thelearning model, appropriate automatic control can be achieved dependingon a situation or a traveling environment.

Effects of Invention

The control device for data related to control of a human-poweredvehicle according to the present invention can achieve automatic controlof the telescopic mechanism adapted to various situations or travelingenvironment in accordance with variety of input information related totraveling of the human-powered vehicle.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a side view of a human-powered vehicle to which a controldevice is adapted.

FIG. 2 is a block diagram illustrating an internal configuration of acontrol unit.

FIG. 3 is a flowchart of one example of a method of creating a learningmodel.

FIG. 4 is a flowchart illustrating a method of creating a learning modelin the first example.

FIG. 5 illustrates the outline of the learning model in the firstexample.

FIG. 6 is a flowchart of a method of creating a learning model in thesecond example.

FIG. 7 illustrates the outline of the learning model in the secondexample.

FIG. 8 is a flowchart of one example of a control procedure using thelearning model by the control unit.

FIG. 9 is a block diagram illustrating the configuration of a controlsystem according to Embodiment 2.

FIG. 10 is an example of a screen displayed in accordance with anapplication program.

FIG. 11 is an example of a screen displayed in accordance with anapplication program.

FIG. 12 is a flowchart of one example of a processing procedure of are-learning processing procedure performed by a control unit inEmbodiment 2.

FIG. 13 is a block diagram illustrating the configuration of a controlsystem according to Embodiment 3.

FIG. 14 is a flowchart of one example of a control procedure using alearning model by a terminal device 2 according to Embodiment 3.

FIG. 15 is an example of the content of a selection screen.

MODE FOR CARRYING OUT INVENTION

The descriptions of the embodiments below are examples of forms that acontrol device according to the present invention can take, though thereis no intention to limit the forms. The control device, the creatingmethod of a trained machine learning model, a trained machine learningmodel, and a computer-readable storage medium according to the presentinvention can take forms different from the embodiments, such as formsof modification of each of the embodiments and a combination of at leasttwo or more modifications that do not contradict each other.

In the following description of each of the embodiments, the termsindicating directions, such as front, back, forward, backward, left,right, sideways, upper, lower and so on are used with reference to thedirections seen as the user sits in the saddle of a human-poweredvehicle.

Embodiment 1

FIG. 1 is a side view of a human-powered vehicle A to which a controldevice according to Embodiment 1 is adapted. The human-powered vehicle Ais a road bike including an assist mechanism C that assists thepropulsion of the human-powered vehicle A using electric energy. Theconfiguration of the human-powered vehicle A can arbitrarily be changed.In the first example, the human-powered vehicle A does not include theassist mechanism C. In the second example, the kind of the human-poweredvehicle A is a city bicycle, a mountain bicycle or a hybrid bicycle. Inthe third example, the human-powered vehicle A includes the features ofthe first example and the second example.

The human-powered vehicle A is provided with a main body A1, a handlebarA2, a front wheel A3, a rear wheel A4, a front fork A5, a seat A6 and aderailleur hanger A7. The human-powered vehicle A includes a drivingmechanism B, an assist mechanism C, an operation device D, atransmission E, a seat post F, a suspension G, a battery unit H and acontrol device 100. The human-powered vehicle A includes a speed sensorS1, a cadence sensor S2, a torque sensor S3, an angle sensor S4, anacceleration sensor S5, a pneumatic sensor S6 and an image sensor S7.The main body A1 is provided with a frame A12.

The driving mechanism B transmits a human-powered drive force to therear wheel A4 by chain drive, belt drive or shaft drive. FIG. 1illustrates the driving mechanism B of the chain drive. The drivingmechanism B includes a crank B1, a first sprocket assembly B2, a secondsprocket assembly B3, a chain B4 and a pair of pedals B5.

The crank B1 includes a crank shaft B11, a right crank B12 and a leftcrank B13. The crank shaft B11 is rotatably supported to the assistmechanism C mounted to the frame A12. The right crank B12 and the leftcrank B13 are coupled to the crank shaft B11. One of the pair of pedalsB5 is rotatably supported to the right crank B12. The other of the pairof pedals B5 is rotatably supported to the left crank B13.

The first sprocket assembly B2 has a first rotation central axis and iscoupled to the crank shaft B11 so as to allow for unitary rotation. Thefirst sprocket assembly B2 includes one or more sprockets B22. The crankshaft B11 and the first sprocket assembly B2 are coaxial with eachother.

The second sprocket assembly B3 has a second rotation central axis andis rotatably supported to a hub (not shown) of the rear wheel A4. Thesecond sprocket assembly B3 includes one or more sprockets B31.

The chain B4 is engaged with any one of the sprockets B22 of the firstsprocket assembly B2 and any one of the sprockets B31 of the secondsprocket assembly B3. When the crank B1 rotates forwardly by ahuman-powered drive force applied to the pair of pedals B5, the firstsprocket assembly B2 rotates forwardly together with the crank B1, whichtransmits the rotation of the first sprocket assembly B2 to the secondsprocket assembly B3 via the chain B4, thereby rotating forwardly therear wheel A4.

The assist mechanism C assists the propulsion of the human-poweredvehicle A. As one example, the assist mechanism C transmits torque tothe first sprocket assembly B2 to thereby assist the propulsion of thehuman-powered vehicle A. The assist mechanism C includes an electricmotor, for example. The assist mechanism C may include a reducer. Theassist mechanism C includes the chain B4 that runs for transmitting adriving force to the rear wheel A4 of the human-powered vehicle A. Theassist mechanism C is a part of the components that can be controlled bya signal for assisting the running of the chain B4.

The operating device D includes an operating unit D1 to be operated bythe user. One example of the operating unit D1 is one or more buttons.The operating unit D1 receives a predetermined operation related tocontrol of various components such as a predetermined operation of theelectric seat post F, a predetermined operation of the electricsuspension G and so on, via the operating unit D1. Another example ofthe operating unit D1 may accept mode switching of the assist mechanismC (power-saving mode, high-power mode, etc.). The operating unit D1 is abrake lever. The operating device D outputs the operation amount of thebrake lever to the control device 100. Every time brake levers providedon left and right handles are inclined sideways, a gear stage or a gearratio for the transmission E can be changed. The operating device D isconnected to communicate with the control device 100 or each of thecomponents so as to transmit and receive signals according to anoperation performed on the operating unit D1. In the first example, theoperating device D is connected to communicate with components through acommunication line or an electric wire that allows for power linecommunication (PLC). In the second example, the operating device D isconnected to communicate with components by a wireless communicationunit that allows for wireless communication.

The transmission E can take various forms. In the first example, thetransmission E is an external transmission for shifting a coupled statebetween the second sprocket assembly B3 and the chain B4. In the secondexample, the transmission E is an external transmission for shifting acoupled state between the first sprocket assembly B2 and the chain B4.In the third example, the transmission E is an internal transmission. Inthe third example, the movable part of the transmission E includes atleast one of a sleeve and a claw of the internal transmission. In thefourth example, the transmission E is a continuously variabletransmission. In the fourth example, the movable part of thetransmission E includes a ball planetary continuously variabletransmission, which is a type of roller-based continuously variabletransmission that uses a set of rotating and tilting planetary balls totransfer power between discs of a transmission. The transmission E is apart of the components that can be controlled by a signal for shifting agear stage.

The seat post F is one of the telescopic mechanisms included in thehuman-powered vehicle A. The seat post F includes a main post body F1movably provided to the frame A12 and a head F2 provided on the top endof the main post body F1. The seat post F is a part of the componentsthat can be controlled by setting a seat height as an operationparameter. The seat post F includes an actuator F3 relative to the mainpost body F1. The seat post F is an electric seat post in the firstexample. The actuator F3 of the seat post F in the first example is anelectric motor. One or more settings are provided for the seat height.The seat post F raises or lowers the main post body F1 relative to theframe A12 depending on a setting of the seat height corresponding to asignal according to an operation transmitted from the operating device Dor a signal automatically transmitted from the control device 100. Theseat height of the seat A6 is adjusted by raising or lowering of themain post body F1. By using a sensor to detect the protrusion lengthfrom the frame A12 of the main post body F1, the seat post F adjusts theprotrusion length to take a value corresponding to the setting of theseat height. By using a sensor to detect a relative linear movementamount between a first cylinder and a second cylinder of the main postbody F1, the seat post F may adjust the movement amount to correspond toa value corresponding to the setting of the seat height. In the secondexample, the seat post F is a mechanical seat post. The seat post F inthe second example includes a hydraulic seat post or a hydraulic andpneumatic seat post. The seat post F in the second example extends bythe force of at least one of a spring or air and contracts byapplication of human power. In the seat post F of the second example,the actuator F3 is a solenoid valve that opens or closes a passage forflow of oil or air. When receiving a signal corresponding to openingfrom the operating device D or the control device 100, the seat post Fin the second example opens the solenoid valve. The seat post F in thestate where the solenoid valve is opened intends to extend by the forceof at least one of the spring and air. In the state where the solenoidvalve is closed, the protrusion length from the frame A12 of the mainpost body F1 or the linear movement amount is not changed. Uponreceiving a signal corresponding to opening, the seat post F in thesecond example opens the solenoid valve for a predetermined time oruntil it receives a next operation instruction. By using the sensor todetect the protrusion length from the frame A12 of the main post body F1or the linear movement amount, the seat post F in the second example maybe configured to open the solenoid valve until the protrusion length orthe linear movement amount reaches a value corresponding to the settingof the seat height. In the third example, the seat post F may be a seatpost provided with an opening and closing mechanism including anelectric motor and a hydraulic valve or and a pneumatic valve incombination.

The seat A6 is attached on a head F2 of the seat post F. The seat A6includes a seat surface A61 and a rail A62 extending along thefront-back direction. The rail A62 of the seat A6 is fitted into thegroove of the head F2 extending along the front-back direction. Theposition of the seat A6 relative to the post main body F2 in thefront-back direction is adjusted in accordance to the position of thehead F2 relative to the rail A62. The seat post F includes an actuatorF4. In the first example, the actuator F4 is an electric motor forrotating a gear in the head F2 such that the gear is engaged with therail A62 as a rack rail. The seat post F is a part of the componentsthat can be controlled by setting the position of the seat A6 in thefront-back direction as an operation parameter. The seat post F adjuststhe position of the head F2 relative to the rail A62 of the seat A6 tomatch the position corresponding to the set position in the front-backposition. The seat post F may be configured to adjust the position inthe right and left direction by providing the head F2 with a grooveextending in the right and left direction and providing the seat A6 witha rail extending in the right and left direction.

The head F2 of the seat post F is mounted on the main post body F1 so asto enable an angular adjustment in the front-back direction or in theright-left direction. The seat post F includes an actuator F5. Theactuator F5 is an electric motor. The seat post F is a component that isable to control the tilt of the seat surface A61 of the seat A6 relativeto the main post body F1, i.e., the frame A12 as an operation parameter.The seat post F adjusts the tilt of the seat surface A61 of the seat A6,that is, the tilt relative to the main post body F1 to a set tilt.

Another configuration may be taken to adjust the position of the seat A6in the front-back direction and in the right-left direction and the tiltof the seat A6. The rail A62 of the seat A6 may be sandwiched betweenthe head F2 and a clamp rotatably provided relative to the head F2 andfixed with a bolt and a nut. In this configuration, the actuator F4 andthe actuator F5 are respectively an electric motor for controlling therotation angle of the clamp and the position of the clamp in theright-left direction and in the front-back direction and an electricmotor for tightening or loosening the bolt.

The suspension G is one of the telescopic mechanisms included in thehuman-powered vehicle A. The suspension G can take various forms. In thefirst example, the suspension G is a front suspension provided at thefront fork A5 for damping the shock applied to the front wheel A3. Thesuspension G includes a first member G1 attached to the front wheel A3and a second member G2 movably attached to the first member G1 via aspring or an air spring. The second member G2 is fixed at the main bodyA1 or a rider part of the handlebar A2. The suspension G includes anactuator G3. The suspension G is a part of the components that can becontrolled by setting a stroke length, a locked state, a spring forceand a damping rate as operation parameters. The suspension G can changethe operation parameters by driving the actuator G3, which is anelectric motor, for example. The electric suspension G may be a rearsuspension for damping the shock applied to the rear wheel A4. In thecase of the rear suspension, the suspension G includes a first memberthat is attached to the rear wheel A4 and fixed at a seat stay or achain stay and a second member fixed at a seat tube, a top tube or adown tube of the frame A12. The second member G2 is movable relative tothe first member via a spring or an air spring. The suspension G may beprovided at the seat post F. The suspension G may include a frontsuspension and a rear suspension. The suspension G may be any one of ahydraulic suspension and a pneumatic-hydraulic hybrid suspension. Theactuator G3 may be a valve for opening or closing a channel for a flowof oil or air. The suspension G is switched between the locked state andthe released state in response to a signal according to an operationtransmitted from the operating device D or a signal automaticallytransmitted from the control device 100. The suspension G may beprovided with a pump and a valve for adjusting air supply from the pumpto an air spring and may be able to change the stroke length to multiplelevels in response to a signal. For changing the stroke length, theactuator G3 is a solenoid valve for opening or closing the valve. Thesuspension G may be able to change a spring force or a damping rate tomultiple levels in response to a signal by driving the actuator G3.

The spring force, here, represents the strength as a spring of thesuspension G and is a spring characteristic such as a spring constant,for example. If the suspension G is hydraulic or pneumatic, it may havea non-linear spring characteristic depending on its oil pressure or airpressure.

The battery unit H includes a battery H1 and a battery holder H2. Thebattery H1 is a rechargeable battery including one or more batterycells. The battery holder H2 is fixed at the frame A12 of thehuman-powered vehicle A, for example. The battery holder H2 may be fixedat the parts of the bicycle other than the frame A12. The battery H1 canbe attached to and detached from the battery holder H2. When attached tothe battery holder H2, the battery H1 is electrically connected to theassist mechanism C, the transmission E, the actuators F3, F4 and F5 ofthe seat post F, the actuator G3 of the suspension G and the controldevice 100.

The speed sensor S1 is fixed at the front fork A5. The speed sensor S1is a sensor for outputting a signal indicating the traveling speed ofthe human-powered vehicle A. The speed sensor S1 includes a magnetprovided at the front wheel A3 and a main body provided at the frontfork A5 for detecting the magnet, for example, and measures a rotationspeed.

The cadence sensor S2 is provided so as to measure a cadence of any oneof the right crank B12 and the left crank B13. The cadence sensor S2outputs a signal indicating the measured cadence. The torque sensor S3is provided so as to measure respective torques applied to the rightcrank B12 and the left crank B13. The torque sensor S3 outputs a signalindicating the torque measured at least one of the right crank B12 andthe left crank B13.

The angle sensor S4 is fixed at the frame A12. The angle sensor S4 is asensor for outputting respective signals indicating yaw, roll and pitchof the human-powered vehicle A. The angle sensor S4 may output a signalindicating at least any one of the three axes, not limited to all thethree axes. The angle sensor S4 is a gyro sensor in the first example.The angle sensor S4 is a direction sensor for outputting a rotationangle in the second example.

The acceleration sensor S5 includes a first acceleration sensor S51provided to the first member G1 and a second acceleration sensor S52provided to the second member G2 of the suspension G. The firstacceleration sensor S51 and the second acceleration sensor S52 eachoutput a signal indicating acceleration.

The pneumatic sensor S6 is provided to the front wheel A3 or the rearwheel A4 and outputs a signal indicating a value corresponding to tireair pressure.

The image sensor S7 is provided to the frame A12 so as to face thefront. In the first example, the image sensor S7 is mounted to the frontfork A5 so as to face the front together with a light. In the secondexample, the image sensor 7 is provided to the handlebar A2. The imagesensor S7 outputs video corresponding to the user's field of vision byusing a camera module. The image sensor S7 outputs a video signalobtained by photographing an object present in the direction of travel.The image sensor S7 may be a module that is integrally equipped with animage recognition unit for performing recognition processing ofseparately recognizing a road, a building and another traveling vehiclefrom the video and that outputs a recognition result.

FIG. 2 is a block diagram illustrating the internal configuration of thecontrol device 100. The control device 100 includes a control unit 10, astorage unit 12 and an input-output unit 14. The control device 100 isprovided at any position of the frame A12. The control device 100 may beprovided between the handlebar A2 and the frame A12. In the firstexample as illustrated in FIG. 1 , the control device 100 is providedbetween the first sprocket assembly B2 and the frame A12. In the secondexample, the control device 100 is provided to the battery holder H2.

The control unit 10 includes processing circuitry, e.g. a processorutilizing a central processing unit (CPU) and/or a graphics processingunit (GPU), and executes processing by controlling a learning algorithmdescribed later and the components provided to the human-powered vehicleA using a memory such as a built-in read only memory (ROM), a randomaccess memory (RAM) and so on. The control unit 10 acquires timeinformation at an arbitrary timing by using an internal clock.

The storage unit 12 includes a non-volatile memory such as a flashmemory, for example. The storage unit 12 stores a learning program 1Pand a control program 2P. The learning program 1P may be included in thecontrol program 2P. The storage unit 12 stores a learning model 1Mcreated by the processing performed by the control unit 10. The learningprogram 1P may be obtained by reading out a learning program 8P storedin a recording medium 18 and copying it in the storage unit 12. Thecontrol program 2P may be obtained by reading out a control program 9Pstored in a storage medium 19 and copying it in the storage unit 12.

The input-output unit 14 is connected to each of the sensor group S1-S7that are mounted to the human-powered vehicle A, the operating device Dand the electric actuators F3, F4 and F5 of the seat post F. Theinput-output unit 14 is also connected to the electric actuators G3 ofthe suspension G. The control unit 10 acquires a signal indicating aspeed from the speed sensor S1 through the input-output unit 14. Thecontrol unit 10 acquires a signal indicating a cadence from the cadencesensor S2 and acquires a signal indicating a torque from the torquesensor S3 through the input-output unit 14. The control unit 10 receivesan input of a signal indicating an attitude of the human-powered vehicleA, specifically, a signal indicating yaw, roll or pitch from the anglesensor S4 through the input-output unit 14. The control unit 10 acquiressignals indicating acceleration from the first acceleration sensor S51and the second acceleration sensor S52 through the input-output unit 14.The control unit 10 acquires a signal indicating a value correspondingto tire air pressure from the pneumatic sensor S6 through theinput-output unit 14. The control unit 10 acquires a video signal or arecognition result in accordance with the video signal from the imagesensor S7 through the input-output unit 14. The control unit 10processes the information acquired from the sensor group S1-S7 as inputinformation. The control unit 10 receives a signal from the operatingdevice D through the input-output unit 14. In the block diagramillustrated in FIG. 2 , the input-output unit 14 is connected to theactuators F3, F4, F5 and the actuator G3, though it does not need to beconnected to the actuator not to be controlled.

The control unit 10 provides the learning model 1M with inputinformation related to traveling of the human-powered vehicle acquiredby the input-output unit 14 and controls the telescopic mechanism inaccordance with the output information related to control of thetelescopic mechanism such as the seat post F, the suspension G or thelike output from the learning model 1M.

The learning model 1M stored in the storage unit 12 is generated inadvance under a traveling test environment of the human-powered vehicleA as described below. At the first step, instead of actually travellingthe human-powered vehicle A, the learning model 1M may be created byperforming a simulation of the model of the human-powered vehicle A. Thetraveling information of the human-powered vehicle A obtained when thehuman-powered vehicle A allowing the user to operate the seat post F andthe suspension G is actually traveled and the operation results thereofare collected, and the learning model 1M may be learned in accordancewith the collected information. The learning model 1M may be created foreach of the seat post F and the suspension G that is to be controlled,or may be created so as to output the control information for both ofthe seat post F and the suspension G.

FIG. 3 is a flowchart of one example of a method of creating thelearning model 1M. The control unit 10 executes the method of creatingthe learning model 1M as will be described below in accordance with thelearning program 1P. The learning algorithm in the present embodiment isreinforcement learning (deep Q learning) using a neural network(hereinafter referred to as NN). The learning method may be a supervisedlearning algorithm or a recurrent neural network using time series data.

The control unit 10 acquires input information related to traveling ofthe human-powered vehicle A by the input-output unit 14 (step S101).

The control unit 10 provides the NN with the input information acquiredat step S101 (step S103) and identifies output information outputtedfrom the NN (step S105).

The control unit 10 calculates an evaluation value for the identifiedoutput information (step S111). In the first example, the evaluationvalue in the traveling state may be derived in accordance withpost-control input information that can be acquired after the control inaccordance with the output information identified at step S105. In thesecond example, the evaluation value for the traveling state may bederived in accordance with a comparison between the output informationidentified at step S105 and a predetermined operation actually performedon the operating device D by the user. The step S111 corresponds to an“evaluation part” in Embodiment 1.

The control unit 10 determines whether or not the evaluation valuecalculated at step S111 satisfies a condition (step S113). If theevaluation value does not satisfy the condition (S113: NO), the controlunit 10 advances the processing to the next step S115.

The control unit 10 uses the evaluation value calculated at step S111 asa consideration, for example, and updates parameters in the intermediatelayer of the NN so as to improve the evaluation of the traveling statein accordance with the output information, and then advances thetraining (step S115). As the details of the learning method, anappropriate method such as a known method in the reinforcement learningincluding double deep Q-learning, actor-critic, A3C or the like may beselectively employed. The control unit 10 returns the processing to stepS101 to continue the learning.

If the determined evaluation value satisfies the condition at step S113(S113: YES), the control unit 10 ends the learning process.

In the case of creating the learning model 1M with a supervised learningalgorithm, if the model user of the human-powered vehicle A drives thevehicle, the control unit 10 acquires input information that can beobtained from the sensor group (S1-S7) and details of the operationperformed on the operating device D by the model user, and uses them astraining data. In the case where the input information is provided tothe NN, the control unit 10 updates the parameters in the NN so that theoutput information to be outputted matches the details of the operationactually performed by the model user, and advances the learningaccordingly.

The method of creating the learning model 1M shown in the flowchart inFIG. 3 will be described in detail. FIG. 4 is a flowchart of a method ofcreating the learning model 1M in the first example. In the firstexample, the object to be controlled is the suspension G. The processingprocedure shown in the flowchart in FIG. 4 is a procedure embodies theprocessing procedure shown by the flowchart in FIG. 3 regarding thecontrol of the suspension G.

The control unit 10 acquires at least first acceleration from the firstacceleration sensor S51 and second acceleration from the secondacceleration sensor S52 among of the information that can be acquiredfrom the sensor group S1-S7 by the input-output unit 14 (step S121). Thecontrol unit 10 may acquire a traveling speed, a cadence, power obtainedfrom the cadence and the torque and an attitude for each of yaw, pitchand roll that can be obtained from the sensor group S1-S7 at step S121.The control unit 10 may acquire a gear ratio obtained from thetransmission E or the operating device D of the human-powered vehicle Aat step S121. The control unit 10 may acquire an operation amount of thebrake lever of the human-powered vehicle A obtained from the operatingdevice D at step S121.

The control unit 10 provides the NN with the input information includingat least the first acceleration and the second acceleration (step S123)and identifies output information including at least one of a strokelength, a locked state, a spring force and a damping rate for thesuspension G from the NN (step S125).

In the first example, the control unit 10 outputs a control signal inaccordance with the output information identified at step S125 to theactuator G3 of the suspension G to thereby control the actuator G3 (stepS127) and acquires post-control input information including thecontrolled first acceleration and second acceleration (step S129). Thecontrol unit 10 calculates an evaluation value in accordance with thepost-control input information (step S131). At step S131, the controlunit 10 calculates as an evaluation value a difference between the firstacceleration and the second acceleration that are acquired aspost-control input information. The less the difference is, the higherthe evaluation value is. The difference may be acceptable if it fallswithin a predetermined range, not necessarily at a minimal value whichis difficult to obtain. At step S131, the control unit 10 may calculatean evaluation value so that a transfer function assuming that the firstacceleration is an input and the second acceleration is an output isminimum. At step S131, the control unit 10 may calculate the amplitudeor the power value of the second acceleration as an evaluation value.The less the amplitude or the power value is, the higher the evaluationvalue is. In some cases, the higher the evaluation value is, the largerthe amplitude is as if the case for irregular road surface. It may bepreferable that the evaluation value is calculated depending on whetheror not the difference between the first acceleration and the secondacceleration, or the transfer function falls within a predeterminedrange.

The control unit 10 determines whether or not a condition that thedifference calculated as an evaluation value falls within thepredetermined range is satisfied (step S133). At step S133, the controlunit 10 determines whether or not a condition that the amplitude or thepower value of the second acceleration on the frame A12 side is lessthan a predetermined value is satisfied.

If the condition is not satisfied has been determined at step S133(S133: NO), the control unit 10 uses the evaluation value calculated atstep S131 as a consideration and updates the parameters in theintermediate layer of the NN so as to improve the evaluation of thetraveling state, and advances the learning (step S135). At step S135,the control unit 10 updates the parameters to reduce the amplitude ofthe second acceleration, for example.

If the condition is satisfied has been determined at step S133 (S133:YES), the control unit 10 ends the learning processing.

The learning model 1M is capable of learning to control the suspension Gto absorb the vibration of the frame A12 for comfortability by theprocedure shown in the flowchart in FIG. 4 .

The control unit 10 may derive traveling environment informationincluding at least one of a ground contact state of the wheels, a roadsurface condition and the weather by a video signal obtained from theimage sensor S7 through the input-output unit, 14 and may use thederived traveling environment information as input information at stepS121. The road surface condition is a result of classification whetherthe road surface is smooth like an asphalt-surfaced road or bumpy like amountain path in accordance with the video signal, for example.Furthermore, the road surface condition may be a result of determinationwhether or not the road is slippery like wet, frozen or the like. Thecontrol unit 10 may acquire the types of the front wheel A3 and the rearwheel A4 and identify the ground contact state of the wheels inaccordance with the air pressure obtained from the pneumatic sensor S6,thereby use them as input information. The types of the front wheel A3and the rear wheel A4 may be different types (product numbers) dependingon the size, material, thickness and gutter pattern. The types may bemodel numbers. In accordance with the association between the airpressure and the ground contact state that are previously stored foreach type of the front wheel A3 and the rear wheel A4, the control unit10 identify the ground contact state for each type of the front wheel A3and the rear wheel A4. For example, the control unit 10 can identifythat the air pressure is the same, but the ground contact states aredifferent between a thick hard front wheel A3 used for a mountainbicycle and a thin front wheel A3 used for a race.

FIG. 5 illustrates the outline of the learning model 1M in the firstexample. In the example with reference to FIG. 5 , the learning model 1M from which output information related to control of the suspension Gis output will be described. The learning model 1M includes an inputlayer 31 for inputting input information related to traveling of thehuman-powered vehicle A, an output layer 32 for outputting outputinformation related to control of the suspension G having the telescopicmechanism among the components of the human-powered vehicle A, and anintermediate layer 33 including parameters learned so as to improve theevaluation of the traveling state if the suspension G is controlled inaccordance with the output information output from the output layer 32.If input information related to traveling is input to the input layer31, calculation is executed in the intermediate layer 33 using thelearned parameters, and output information related to control of thesuspension G is output from the output layer 32.

In the example in FIG. 5 , the input layer 31 is provided with at leastfirst acceleration obtained from the first acceleration sensor S51 andsecond acceleration obtained from the second acceleration sensor S52.The input layer 31 may be provided with a cadence obtained from thecadence sensor S2. The input layer 31 may be provided with powerobtained by calculation using the torque and the cadence.

Other than the above description, the data of an attitude of thehuman-powered vehicle A obtained from the angle sensor S4 may be inputto the input layer 31. The data of the attitude is informationindicating the inclination of the human-powered vehicle A. Theinclination is represented by a yaw component having an axis in thevertical direction, a roll component having an axis in the front-backdirection of the human-powered vehicle A, and a pitch component havingan axis in the right-left direction of the human-powered vehicle A.

The input layer 31 may be provided with a load balance of thehuman-powered vehicle A. The load balance may be a numerical valueobtained by the control unit 10 from the ratio between the pressure ofthe front wheel A3 and the pressure of the rear wheel A4 obtained fromthe pneumatic sensor S6. The load balance may be evaluated by using avector sensor or a strain gauge, or obtained by using different types ofsensors in combination according to a design. The load balance may alsobe a result of determination whether the load balance is closer to thefront or closer to the back under the test run environment, in a casewhere piezoelectric sensors are provided at the front wheel A3, the rearwheel A4, the seat A6 and the handlebar A2 of the human-powered vehicleA.

A signal indicating a ground contact state of the front wheel A3 or therear wheel A4 obtained from the pneumatic sensor S6 may be input to theinput layer 31. In other words, the signal indicating the ground contactstate is traveling environment information. The signal indicating theground contact state corresponds to a numerical value representing thechange of size of the contact area as the air pressure increases. Thesignal indicating the ground contact state may be signals representingrespective sizes of large, medium and small of the contact area. Asanother example of the traveling environment information, a signalindicating a road surface condition obtained by performing imageprocessing on the video signal obtained from the image sensor S7 may beinput to the input layer 31. The signal indicating the road surfacecondition is, for example, a signal representing a road surfacecondition such as a determination result whether the road is unpaved orpaved, a determination result whether the road is uphill or downhill, orwhether the road is slippery or not.

The output layer 32 outputs a spring force of the suspension G. Theoutput layer 32 specifically outputs information indicating evaluationsfor actions of the spring force classified as strong, moderate and weak,that is, a spring force associated with higher ride comfortability. Inthe figures, the output layer is shown to include a plurality of vectorsQ, each of which contains a confidence score s and an outputclassification (e.g., strong, moderate, and weak or high, middle, andlow). It will be appreciated that other classifications may be used. Thecontrol unit 10 can select the spring force with the highest evaluationin accordance with the evaluated actions value of the outputinformation, and output the selected one to the suspension G. For thespring force output from the output layer 32, a higher evaluation isgiven to smaller vibration measured by the second acceleration.

As the reinforcement learning progresses, the learning model 1M, canobtain the control information of the suspension G for improving ridingcomfortability depends on the traveling situation and the road surfacecondition of the human-powered vehicle A.

FIG. 6 is a flowchart of a method of creating a learning model 1M in thesecond example. In the second example, an object to be controlled is theseat post F. The processing procedure shown in the flowchart in FIG. 6is a procedure where the processing procedure shown in the flowchart inFIG. 3 used to control the seat post F.

The control unit 10 acquires at least one of a traveling speed from thespeed sensor S1, a cadence and driving force obtained from the cadenceand the torque among the information that can be acquired from thesensor group S1-S7 through the input-output unit 14 (step S141). At stepS141, the control unit 10 may acquire an attitude for each of yaw, pitchand roll of the human-powered vehicle A. The control unit 10 may acquirea gear ratio obtained from the transmission E or the operating device Dof the human-powered vehicle A at step S141. The control unit 10 mayacquire an operation amount of the brake lever of the human-poweredvehicle A obtained from the operating device D at step S141.

The control unit 10 provides the NN with the input information includingat least one of the traveling speed, the cadence and the driving force(step S143) and identifies output information including at least one ofa seat height of the seat A6, a tilt of the seat surface A61 and aposition of the seat A6 in the front-back direction and in theright-left direction for the seat post F outputted from the NN (stepS145).

In the second example, the control unit 10 outputs a control signal inaccordance with the output information identified at step S145 to theactuators F3, F4 and F5 of the seat post F to control the actuators(step S147) and acquires post-control input information including thetorque, for example, after control (step S149). The control unit 10calculates an evaluation value in accordance with the post-control inputinformation (step S151). At step S151, the control unit 10 acquires thetorque as post-control input information and calculates a torque or adriving force as an evaluation value. The smaller the torque or thedriving force is, the more easily the user pedals the human-poweredvehicle, and evaluated higher.

The control unit 10 determines whether a condition that the torque orthe driving force calculated at step S151 is less than a predeterminedvalue is satisfied (step S153) or not.

If the determined condition is not satisfied at step S153 (S153: NO),the control unit 10 uses the evaluation value calculated at step S151 asa consideration and updates the parameters in the intermediate layer ofthe NN so as to improve the evaluation of the traveling state, andadvances the learning (step S155). At step S155, the control unit 10updates the parameters to reduce the torque or the driving force, forexample.

If the determined condition is satisfied at step S153 (S153: YES), thecontrol unit 10 ends the learning process.

In the second example, without performing steps S147 and S149, thecontrol part 10 may compare the output information identified at stepS145 and predetermined operation actually performed on the operatingdevice D by the user, and may calculate the degree of gap in accordancewith the comparison as an evaluation value at step S151. For example, ifthe user actually operates the operating device D to adjust the seatheight of the seat post F and the position of the seat post F in thefront-back direction and in the left and right direction, the controlunit 10 may advance the learning such that the output information outputfrom the NN matches the details of the control actually performed. Inthis case, the details of the operation performed on the operatingdevice D are training data, and the learning is advanced usingsupervised learning.

In the second example, as the learning progresses, control informationfor the seat post F for easily pedaling and driving the human-poweredvehicle A can be obtained by using the learning model 1M. By thereinforcement learning in accordance with the information such as thetraveling speed, the image information, the tilt, the power or the like,the saddle is automatically adjusted to the optimum position dependingon the situation.

In the second example as well, the control unit 10 may derive travelingenvironment information including at least one of a ground contact stateof the wheels, a road surface condition and the weather by the videosignal obtained from the image sensor S7 through the input-output unit14, and may use the derived traveling environment information as inputinformation at step S141. The road surface condition is a result ofclassification whether the road surface is smooth like anasphalt-surfaced road or bumpy like a mountain path in accordance withthe video signal, for example. The road surface condition may be aresult of determination whether or not the road is slippery like wet,frozen or the like. The control unit 10 may acquire the types of thefront wheel A3 and the rear wheel A4 and identify the ground contactstate of the wheels in accordance with the air pressure obtained fromthe pneumatic sensor S6 to use them as input information.

FIG. 7 illustrates the outline of the learning model 1M in the secondexample. In the example with reference to FIG. 7 , the learning model 1M from which output information related to control of the seat post F isoutput will be described. The learning model 1M includes an input layer31 to be provided with input information related to traveling of thehuman-powered vehicle A, an output layer 32 providing output informationrelated to control of the seat post F having the telescopic mechanism ofthe components of the human-powered vehicle A, and an intermediate layer33 having parameters, where the intermediate layer is configured tolearn to improve evaluation of the traveling state of the human-poweredvehicle A as the seat post F is controlled in accordance with the outputinformation outputted from the output layer 32. If input informationrelated to traveling is input to the input layer 31, calculation isexecuted in the intermediate layer 33 using the learned parameters, andoutput information related to control of the seat post F is output fromthe output layer 32.

In the example in FIG. 7 , the input layer 31 is provided with a cadenceobtained from the cadence sensor S2 and a torque obtained from thetorque sensor S3. The input layer 31 may be provided with power obtainedby calculation using the torque and the cadence.

The input layer 31 may be provided with a gear ratio obtained from thetransmission E or the operating device D.

The data of an attitude of the human-powered vehicle A obtained from theangle sensor S4 may be inputted to the input layer 31. The data of theattitude may be information indicating the inclination of thehuman-powered vehicle A. The inclination is represented by a yawcomponent having an axis in the vertical direction, a roll componenthaving an axis in the front-back direction of the human-powered vehicleA, and a pitch component having an axis in the right-left direction ofthe human-powered vehicle A. By inputting the attitude of thehuman-powered vehicle A, it is expected that the seat post F iscontrolled to lower the seat A6 at a downhill and raise the seat A6 atan uphill, for example.

An operation amount of the brake obtained from the operating device Dincluding the brake lever as an operating unit D1 may be inputted to theinput layer 31. If the operation amount of the brake is large, the seatA6 is automatically lowered to allow for easy pedaling or allow forsafety stop when the human-powered vehicle A is stopped.

A video signal obtained from the image sensor S7 may be inputted to theinput layer 31. The video signal is not input as it is, but a signalindicating a road surface condition obtained by performing imageprocessing on the video signal may be input to the input layer 31. Inother words, the signal indicating the road surface condition is thetraveling environment information. The signal indicating the roadsurface condition is, for example, a signal indicating a road surfacecondition such as a determination result whether the road is unpaved orpaved, a determination result whether the road is uphill or downhill, orwhether the road is slippery or not. By classifying ups and downs of theroad surface to be traveled from the video signal corresponding to thelandscape viewed in the direction of travel, it is possible to controlthe seat post F by determining whether the seat A6 should be raised orlowered.

Other than the above description, a signal indicating a traveling speedof the human-powered vehicle A obtained from the speed sensor S1 may beinputted to the input layer 31. In the state where stopping withtraveling speed equals to or lower than a predetermined speed, the seatpost F can be controlled to automatically lower the seat A6.

The output layer 32 outputs the height of the seat A6 for the seat postF. The output layer 32 specifically outputs evaluations for the heightof the seat A6 classified into three levels of high, middle and low,i.e., which indicate each protrusion length and the linear movementamount of the seat post F, and the action value which informationindicating a height associated with higher ride comfortability. Theheight of the seat post F may be controlled by the protrusion length orthe linear movement amount itself that allows for continuous adjustment,not limited to classification into three levels of high, middle and low.The seat post F may be a product that allows for two level adjustment.The control unit 10 can select the height with the highest evaluationfor action in accordance with the evaluations for actions of the outputinformation, and output the protrusion length or the linear movementamount corresponding to the selected height to the seat post F. For theheight of the seat A6 output from the output layer 32, a higherevaluation value is given to the height that is associated with smallertorque or less power and with no unnecessary force applied. Inaccordance with the correspondence between the seat height and thelinear movement amount as well as the seat height and the protrusionlength, the linear movement amount corresponding to the selected heightmay be outputted to the seat post F.

In another example, the output layer 32 may output evaluations foractions of the plurality of set position relative to the front-backdirection and in the right-left position of the seat A6 for seat post F.In another example, the output layer 32 may output an evaluation foraction for each tilt of the seat surface A61 of the seat A6.

As the reinforcement learning progresses, the control information of theseat post F for improving ride comfortability depending on the travelingsituation and the road surface condition for the human-powered vehicle Acan be obtained by using the learning model 1M.

In the processing procedures shown in the flowcharts in FIG. 3 , FIG. 4and FIG. 6 , a consideration is provided for every control period, andthe learning is advanced using immediate considerations though notlimited thereto. The consideration may be provided by using the power,the torque or the cadence of the second acceleration during apredetermined duration. The information input to the learning model 1Mor the NN before learning is numerical values or information obtainedfrom the sensor group S1-S7 every control period. However, numericalvalues or information obtained from the sensor group S1-S7 over apredetermined period may be provided to the input layer 31. In thiscase, an image plotting the output from the sensor group S1-S7 on agraph may be provided to the input layer 31.

The control unit 10 of the control device 100 controls the components inaccordance with the control information output from the learning model1M created as described above. FIG. 8 is a flowchart of one example of acontrol procedure using the learning model 1M by the control device 100.The control unit 10 repeatedly executes the processing procedure shownin the flowchart in FIG. 8 . This procedure may be executed at apredetermined control period (30 milliseconds, for example).

The control unit 10 acquires input information related to traveling ofthe human-powered vehicle A by the input-output unit 14 (step S201). Atstep S201, the control part 10 refers to each of the signal levels fromthe sensor group S1-S7 input through the input-output unit 14 everycontrol period, and temporarily stores the signal level in the internalmemory of the control unit 10 or a memory integrated in the input-outputunit 14.

The control unit 10 provides the input layer 31 of the learning model 1Mwith the input information acquired at step S201 (step S203). Thecontrol unit 10 selects and provides the input information for thesuspension G, and selects and provides the input information for theseat post F at step S203.

The control unit 10 identifies the output information related to controlof the component to be controlled outputted from the learning model 1M(step S205). The control unit 10 identifies, for example, the height ofthe seat A6 related to the seat post F output from the learning model 1Mas output information at step S205. In another example, the control unit10 identifies the strength of the spring force of the suspension Goutput from the learning model 1M as output information.

The control unit 10 refers to the state of the object to be controlledin accordance with the identified output information (step S207). Thecontrol unit 10 determines whether or not output of a control signal isnecessary in accordance with the relation between the details of thecontrol indicated by the identified output information and the referredstate (step S209).

If output of a control signal is necessary being determined at step S209(S209: YES), the control unit 10 outputs a control signal in accordancewith the identified output information related to control to the objectto be controlled (step S211), and ends the control processing performedin one control period.

If output of a control signal is not necessary being determined at stepS209 (S209: NO), the control unit 10 ends the processing withoutoutputting a control signal in accordance with the identified outputinformation related to control to the object to be controlled. Thus, thedetermination process of steps S207 and S209 can be omitted.

The control unit 10 may execute the process shown in the flowchart inFIG. 8 for each of the seat post F and the suspension G, or may executethe process step S201 in common, and may select and provide differentinformation for each of the component at step S203.

If the suspension G or the seat post F is automatically controlled, thecontrol device 100 may use a speaker as a notification unit fornotifying the user being a rider of the details of the control, and thecontrol unit 10 may output beeper sounds, guidance sounds or the like tothe speaker. The control device 100 may output the details of thecontrol to a cycle computer, which is mounted on the handlebar A2 a,having a display serving as a notification unit for notifying the userof the details of the control. Notification of the details of thecontrol allows the user to recognize the details of the control of thecomponents related to traveling of the human-powered vehicle A, andachieving automatic control without causing discomfort is possible.

Embodiment 2

In Embodiment 2, processing of creating the learning model 1M andoutputting component control information is executed by a terminaldevice of the user instead of the control device 100. FIG. 9 is a blockdiagram illustrating the configuration of a control system 200 accordingto Embodiment 2. The control system 200 includes a terminal device 2 andthe control device 100. The control device 100 in Embodiment 2 includesa control unit 11, a storage unit 12, an input-output unit 14 and acommunication unit 16. Some of the components of the control device 100in Embodiment 2 common to those of the control device 100 in Embodiments1 will be denoted by the same reference codes, and detailed descriptionthereof will not be repeated.

The control unit 11 of the control device 100 in Embodiment 2, whichincludes processing circuitry, e.g. a processor utilizing a CPU,executes processing by controlling each of the components with the useof a memory such as a built-in ROM, RAM and so on. The control unit 11does not execute the learning process performed by the control unit 10of the control device 100 in Embodiment 1. The control unit 11 receivesa signal input from the sensor group S1-S7 mounted on the human-poweredvehicle A through the input-output unit 14, and transmits the inputsignal to the terminal device 2 via the communication unit 16. Thecontrol unit 11 refers to a control state of the operating device D andan operation signal output from the operating device D, and transmitsthem to the terminal device 2 through the communication unit 16. Thecontrol unit 11 input a control signal to the seat post F or thesuspension G to be controlled in accordance with the operation signaloutput from the operating device D or an instruction output from theterminal device 2.

The terminal device 2 is a portable compact communication terminaldevice to be used by the user. The terminal device 2 is a cycle computerin the first example. The terminal device 2 may be a communicationterminal device such as a so-called junction box that is connected tothe components of the human-powered vehicle A via wire or wirelessconnection in the second example. The terminal device 2 is a smartphonein the third example. The terminal device 2 is a wearable device such asa smartwatch or the like in the fourth example. For the cycle computeror the smartphone, a holding member used for a cycle computer or asmartphone may be attached to the handlebar A2 of the human-poweredvehicle A, and the cycle computer or the smartphone may be used whilebeing put on the holding member (see FIG. 10 ).

The terminal device 2 includes a control unit 201, a storage unit 203, adisplay unit 205, an operating unit 207, a voice input-output unit 209,a GPS receiver 211, a first communication unit 213 and a secondcommunication unit 215.

The control unit 201 includes processing circuitry, e.g. a processorsuch as a CPU, a GPU, and a memory and so on. The control unit 201 maybe constituted as a single hardware (SoC: System On a Chip) integratedwith the processor, the memory, the storage unit 203, the firstcommunication unit 213 and the second communication unit 215. Thecontrol unit 201 executes learning of the output information related tocontrol of the human-powered vehicle A and component control inaccordance with the learning according to an application program 20Pstored in the storage unit 203.

The storage unit 203 includes a non-volatile memory such as a flashmemory, for example. The storage unit 203 stores a learning program 10Pand the application program 20P. The learning program 10P may beincluded in the application program 20P. The storage unit 203 stores alearning model 2M created by the process performed by the control unit201. The storage unit 203 stores data to which the control unit 201refers. The learning program 10P may be obtained by reading out alearning program 40P stored in a recording medium 4 and copying it inthe storage unit 203. The application program 20P may be obtained byreading out an application program 50P stored in a storage medium 5 andcopying it in the storage unit 203.

The storage unit 203 stores map information. The map informationincludes elevation information of roads and information regardingwhether a road is unpaved or paved, or the like. The control unit 201can identify traveling environment information of the human-poweredvehicle A corresponding to the map information whether the road isuphill or downhill, or whether the road is unpaved or not from theposition of the terminal device 2 obtained from the GPS receiver 211,that is, the position of the human-powered vehicle A with reference tothe map information stored in the storage unit 203.

The display unit 205 includes a display device such as a liquid crystalpanel, an organic electroluminescence (EL) display, or the like. Thedisplay unit 205 is a notification unit for notifying the user of thedetails of the control performed on the seat post F or the suspension G.

The operating unit 207 is an interface for accepting operation by theuser and includes a physical button and a display-integrated touch paneldevice. The operation unit 207 can accept operation performed on thescreen displayed by the display unit 205 through the physical button orthe touch panel.

The voice input-output unit 209 includes a speaker, a microphone and soon. The voice input-output unit 209 is provided with a voice recognitionunit 217 and is able to accept operation by recognizing the details ofoperation from voice input through the microphone. The voiceinput-output unit 209 is a notification unit for notifying the user ofthe details of the control performed on the seat post F or thesuspension G by generating voice or beep sounds from the speaker. Thevoice input-output unit 209 may have a function of outputting vibrationof a specific pattern to thereby vibrate the terminal device 2 as awhole or the display surface of the display unit 205.

The GPS receiver 211 is a communication unit to receive a globalpositioning system (GPS) signal. The GPS receiver 211 is provided toobtain position information (longitude and latitude information) of theterminal device 2. The GPS receiver 211 may assist calculation of theposition information using the strength of the reception of the electricwave according to the wireless communication standard such as Wi-Fi,Bluetooth (registered trademark) or the like.

The first communication unit 213 is a communication module thatcorresponds to the communication unit 16 of the control device 100. Thefirst communication unit 213 is a USB communication port in the firstexample. The first communication unit 213 is a short range wirelesscommunication module in the second example.

The second communication unit 215 is a wireless communication module fortransmitting and receiving information to and from another communicationequipment (not shown) through a public communication network oraccording to a predetermined mobile communication standard. The secondcommunication unit 215 employs a network card, a wireless communicationdevice or a carrier communication module. The control unit 201 canacquire weather information from another communication equipment by thesecond communication unit 215. The control unit 201 can acquire theinformation about the weather as traveling environment information ofthe human-powered vehicle A in accordance with the position of theterminal device 2 obtained by the GPS receiver 211, that is, theposition information of the human-powered vehicle A.

In Embodiment 2, the control device 100 continuously acquires inputinformation obtained from the sensor group S1-S7 mounted on thehuman-powered vehicle A through the input-output unit 14, and transmitsthe input information to the terminal device 2 via the communicationunit 16.

The control unit 201 of the terminal device 2 operates in an automaticcontrol mode using the learning model 2M created in advance and in are-learning mode which the learning model 2M is updated for the rider.In the case of the automatic control mode, the control unit 201 controlsthe seat post F in accordance with the information related to control ofthe seat post F that is output by providing input information to thelearning model 2M for the seat post F. In the case of the automaticcontrol mode, the control unit 201 controls the suspension G inaccordance with the information related to control of the suspension Gthat is output by providing input information to the learning model 2Mfor the suspension G. The creating method of the learning model 2Mcreated in advance is similar to the creating method of the learningmodel 1M for the seat post F or the creating method of the learningmodel 1M for the suspension G that are described in Embodiment 1 andthus the description thereof will not be made.

The processing by the control unit 201 in the automatic control mode issimilar to the details of the processing by the control device 100 inEmbodiment 1 shown by the flowchart in FIG. 8 , and thus the detaileddescription thereof will not be made.

The following describes the re-learning mode for updating the learningmodel 2M in accordance with evaluations. FIGS. 10 and 11 show examplesof screens displayed in accordance with the application program 20P. Inthe example illustrated in FIG. 10 , the terminal device 2 is a cyclecomputer and attached to the handlebar A2 so as to allow the user toview the display unit 205. FIG. 10 shows a main screen 250 displayed onthe display unit 205 in accordance with the application program 20P. Thecontrol unit 201 set the display unit 205 to display the main screen 250in accordance with the application program 20P. The control unit 201establishes communication with the control device 100 in accordance withthe application program 20P. On the main screen 250, respectiveselection buttons 252 and 254 for the re-learning mode and the automaticcontrol mode are included. The control unit 201 starts the operation inthe re-learning mode if the selection button 252 is selected whereas thecontrol unit 201 starts the operation in the automatic control mode ifthe selection button 254 is selected.

FIG. 11 is an example of the content of a re-learning mode screen 256 tobe displayed if the selection button 252 for the re-learning mode isselected. The re-learning mode screen 256 is a notification unit fordisplaying a message indicating details of the control when the controlunit 201 controls the component having a telescopic mechanism such asthe seat post F, the suspension G or the like. The re-learning modescreen 256 includes a high evaluation button 258 and a low evaluationbutton 260. The high evaluation button 258 and the low evaluation button260 correspond to the first example of the evaluation unit. The controlunit 201 recognizes selection of the high evaluation button 258 and thelow evaluation button 260 through the operation unit 207, and acceptsthe evaluation. The high evaluation button 258 in the example shown inFIG. 11 is selected if control in accordance with the learning model 2Mis not comfortable. The control unit 201 recognizes which one of thebuttons 258 and 260 is selected, and recognizes the accepted details ofevaluation. As an evaluation unit, only the low evaluation button 260may be displayed.

In the second example, the evaluation unit may be a physical buttonprovided on the operating unit D1. A specific evaluation acceptancebutton may be provided on the operating unit D1. An evaluationacceptance button may separately be provided close to the operatingdevice D.

In the third example, the evaluation unit is a voice recognition unit217 of the voice input-output unit 209. The control unit 201 recognizesvoice of the user by the voice recognition unit 217, thereby accept anevaluation. The control unit 201 determines whether or not control iscomfortable in accordance with the voice recognition. If the control iscomfortable, high evaluation is assumed.

In the fourth example, the evaluation unit identifies facial expressionsfrom an image obtained by photographing the face of the user being arider with the camera and determines whether the control is comfortablein accordance with the specified facial expressions, thereby accept anevaluation in accordance with whether the control is comfortable or not.

FIG. 12 is a flowchart of one example of the processing procedure forre-learning performed by the control unit 201 in Embodiment 2. If theselection button 252 for the re-learning mode is selected, the controlunit 201 executes the following process at a predetermined controlperiod (30 milliseconds, for example) until the automatic control modeis selected. In the flowchart in FIG. 12 , the procedure regarding theseat post F as an object to be controlled will be shown.

The control unit 201 acquires input information related to traveling ofthe human-powered vehicle A obtained from the control device 100 throughthe first communication unit 213 (step S301). At step S301, the controlunit 201 acquires signal levels obtained by the control unit 10 of thecontrol device 100 referring to the signal levels from the sensor groupsS1-S7 for every control period, and temporarily storing them in theinternal memory of the control unit 10 or the memory integrated in theinput-output unit 14.

The control unit 201 provides the learning model 2M with the inputinformation acquired at step S301 (step S303) and identifies outputinformation related to control of the component output from the learningmodel 2M (step S305).

The control unit 201 outputs a control instruction in accordance withthe output information identified at step S305 to the control device 100(step S307), and displays the details of the control on the display unit205, thereby notify the user of the details of the control (step S309).

The control unit 201 accepts an evaluation by the user within apredetermined time period after the control process (step S311). At stepS311, the control part 201 accepts an evaluation using the highevaluation button 258 and the low evaluation button 260 on there-learning mode screen 256 as shown in FIG. 10 and FIG. 11 .

The control unit 201 acquires the details of operation actuallyperformed using the operating unit D1 of the operating device D from thecontrol device 100 (step S313). The control unit 201 calculates anevaluation value in accordance with the comparison between theinformation related to the control of the component corresponding to thedetails of the control acquired at step S313 and the output informationidentified at step S305 (step S315). The control unit 201 calculates ahigher evaluation value as the difference between the informationacquired at step S311 and the output information specified at step S305decreases.

The control unit 201 uses the details of the evaluation accepted at stepS311 and the evaluation value calculated at step S315 as a considerationfor the output information identified at step S305, updates theparameters in the intermediate layer of the learning model 2M so as toimprove the evaluation from the user (step S317) and then ends theprocessing.

The processing at the steps S313 and S315 may be performed only when thedetails of the evaluation accepted at step S311 corresponds to a lowevaluation.

The control unit ends the re-learning mode when the user selects theselection button 254 for the automatic control mode, or the probabilityof the evaluation accepted at step S311 being high is equal to or largerthan a predetermined ratio, or the evaluation value calculated at stepS315 falls within the range set in advance. The control unit 201 mayexecute the procedure of the flowchart in FIG. 12 for a predeterminedtime period after the selection button 252 for re-learning mode isselected.

The re-learning processing described in Embodiment 2 allows the terminaldevice 2 and the control device 100 to achieve automatic control of thetelescopic mechanism according to the riding characteristics and thepreference of the user being the rider of the human-powered vehicle A.

Embodiment 3

The configuration of the control system 200 in Embodiment 3 is similarto the configuration thereof in Embodiment 2 except for that thelearning model 2M is prepared for each of the traveling courses whichthe human-powered vehicle A travels. Some of the components of thecontrol system 200 in Embodiment 3 common to those in Embodiments 1 and2 will be denoted by the same reference codes, and detailed descriptionthereof will not be repeated.

FIG. 13 is a block diagram showing the configuration of the controlsystem 200 according to Embodiment 3. In Embodiment 3, multiple learningmodels 21M and 22M are stored in the storage unit 203 of the terminaldevice 2 as illustrated in FIG. 13 . The multiple learning models 21Mand 22M are models created and prepared by the process shown in theflowchart of FIG. 3 , FIG. 4 or FIG. 5 of Embodiment 1 under differenttest run environments. In the first example, the different test runenvironment is a travel course which the human-powered vehicle Atravels. The learning models 21M and 22M are prepared for the respectivedifferent travel courses which the human-powered vehicle A travels andare stored in the storage unit 203. It may be configured to make a modelcorresponding to a different traveling environment selectable, notlimited to a traveling course. The user can select any one of thelearning models 2M from an external server using the terminal device 2,download it into the terminal device 2 and store it in the storage unit203. The control unit 201 may accept operation from the user and accepta setting with a name corresponding to the stored learning model 2M.

Automatic control performed when the learning model 21M or 22M for eachof the different travel courses is appropriately selected will bedescribed below. FIG. 14 is a flowchart of one example of a controlprocedure using the learning model 21M or 22M by the terminal device 2according to Embodiment 3.

The control unit 201 displays a selection screen for the travel courseon the display unit 205 (step S401) and accepts selection of a travelcourse on the selection screen (step S403). FIG. 15 is an example of thecontent of the selection screen. The selection screen 262 includesselection buttons 264 and 266 for multiple travel courses as shown inFIG. 15 . The control unit 201 can recognize which one of the selectionbuttons 264 and 266 is selected through the operating unit 207. Thecontrol unit 201 selects a learning model corresponding to the travelcourse selected at step S403 from the multiple learning models 21M, and22M stored in the storage unit 203 as shown in FIG. 15 (step S405).

The control unit 201 acquires information related to traveling of thehuman-powered vehicle A obtained from the control device 100 through thefirst communication unit 213 (step S407).

The control unit 201 provides the learning model 21M or 22M selected atstep S405 with the input information acquired at step S407 (step S409)and identifies output information related to control of the componentoutput from the selected learning model 21M or 22M (step S411).

The control unit 201 acquires the state of the object to be controlledin accordance with the identified output information from the controldevice 100 (step S413). The control unit 201 determines whether or notoutput of a control signal is necessary in accordance with the relationbetween the details of the control indicated by the identified outputinformation and the referred state (step S415).

If it is determined that output of a control signal is necessary at stepS415 (S415: YES), the control unit 201 outputs a control instruction inaccordance with the output information identified at step S411 to thecontrol device 100 (step S417). The control unit 201 causes the displayunit 205 to display the details of the control, thereby notify the userof the details of the control (step S419) and ends the process.

If it is determined that output of a control signal is not necessary atstep S415 (S415: NO), the control unit 201 ends the process withoutoutputting a control instruction in accordance with the identifiedoutput information related to control. Thus, the determination processesat steps S413 and S415 can be omitted.

Hence, automatic control of the telescopic mechanism suited for each ofthe travel courses depending on various situations or runningenvironments in accordance with variety of input information can beachieves by training the learning model 21M or 22M for each of thedifferent traveling environments.

The terminal device 2 according to Embodiment 3 may re-train each of thelearning models 21M and 22M as illustrated in Embodiment 2.

Thus, by using the learning models 1M, 2M, or 21M and 22M, the controldevice 100 is not required to compare numerical values of the travelinginformation obtained from the multiple sensors S1-S7 and thresholds, andexecute each of determinations in accordance with the comparisonresults. The control device 100 enables appropriate automatic controlaccording to human senses while systematically and naturally taking theinput information related to the traveling of the human-powered vehicleA obtained from the multiple sensors S1-S7 into account.

DESCRIPTION OF REFERENCE CHARACTERS

-   -   100 control device    -   10 control unit    -   12 storage unit    -   1M learning model    -   1P learning program    -   2P control program    -   2 terminal device (control device)    -   201 control unit    -   203 storage unit    -   2M, 21M, 22M learning model    -   10P learning program    -   20P application program    -   A12 frame    -   A2 handlebar    -   A5 front fork    -   A6 seat    -   A61 seat surface    -   F seat post    -   F1 main post body    -   F2 head    -   F3, F4, F5 actuator    -   G suspension    -   G1 first member    -   G2 second member    -   G3 actuator    -   S1 speed sensor    -   S2 cadence sensor    -   S3 torque sensor    -   S4 angle sensor    -   S5 acceleration sensor    -   S51 first acceleration sensor    -   S52 second acceleration sensor    -   S6 pneumatic sensor    -   S7 image sensor

The invention claimed is:
 1. A control device comprising: a control unitincluding processing circuitry configured to control a telescopicmechanism in accordance with an output information related tocontrolling the telescopic mechanism; and an evaluation unit configuredto evaluate the output information, wherein the output information isoutputted from a trained machine learning model in association with aninput information related to a traveling of a human-powered vehicle; andthe trained machine learning model is updated in accordance with anevaluation by the evaluation unit.
 2. The control device according toclaim 1, wherein the telescopic mechanism is a suspension of thehuman-powered vehicle, and the output information includes at least oneof a stroke length, a locked state, a spring force, and a damping rate.3. The control device according to claim 2, wherein the suspensionincludes a first member and a second member movably mounted to the firstmember, and the input information includes a first accelerationoutputted by a first acceleration sensor provided to the first member,and a second acceleration outputted by a second acceleration sensorprovided to the second member.
 4. The control device according to claim3, wherein the learning model outputs the output information such that adifference between the first acceleration and the second accelerationfalls within a predetermined range.
 5. The control device according toclaim 1, wherein the telescopic mechanism is a seat post of thehuman-powered vehicle, and the output information includes at least oneof a seat height, an inclination of a seat surface, a position in afront-back direction, and a position in a right-left direction.
 6. Thecontrol device according to claim 1, wherein the input informationincludes at least one of a traveling information of the human-poweredvehicle and a traveling environment information of the human-poweredvehicle.
 7. The control device according to claim 6, wherein thetraveling information includes at least one of a traveling speed of thehuman-powered vehicle, an acceleration of the human-powered vehicle, anattitude of the human-powered vehicle, a cadence of a crank of thehuman-powered vehicle, a driving force of the human-powered vehicle, aload balance of the human-powered vehicle, a gear ratio of thehuman-powered vehicle, an operation amount of a brake of thehuman-powered vehicle, and a physical information of a user.
 8. Thecontrol device according to claim 6, wherein the traveling environmentinformation of the human-powered vehicle includes at least one of aground contact state of wheels, a road surface condition, a positioninformation, and weather.
 9. The control device according to claim 1,wherein the control unit outputs details of controlling the telescopicmechanism to a notification unit which notifies a user of the details.10. The control device according to claim 1, wherein the evaluation unitevaluates the output information in accordance with a post-control inputinformation when the input information is obtained after the controlunit controls the telescopic mechanism.
 11. The control device accordingto claim 10, further comprising: an operation unit that accepts apredetermined operation related to the output information, wherein theoutput information is evaluated in accordance with a comparison betweena post-control output information outputted from the learning model inaccordance with the post-control input information and the predeterminedoperation.
 12. The control device according to claim 1, wherein thelearning model is prepared for each traveling course the human-poweredvehicle travels and accepts a selection of a traveling course, and thecontrol unit controls the telescopic mechanism in accordance with theoutput information in association with the input information from thelearning model corresponding to the selected traveling course.
 13. Amethod of creating a learning model comprising: employing, in a casewhere an input information related to a traveling of a human-poweredvehicle is inputted, a neural network that outputs an output informationrelated to controlling a telescopic mechanism of components of thehuman-powered vehicle; acquiring the input information related to thetraveling of the human-powered vehicle; identifying the outputinformation outputted by providing the neural network with the acquiredinput information; and learning, when the telescopic mechanism iscontrolled in accordance with the identified output information,parameters in an intermediate layer of the neural network by a computerso as to improve an evaluation of a traveling state of the human-poweredvehicle.
 14. A processor configured to execute a learning model, thelearning model comprising: an input layer to be provided with an inputinformation related to a traveling of a human-powered vehicle; an outputlayer providing an output information related to controlling a componentof the human-powered vehicle, the component having a telescopicmechanism; and an intermediate layer having parameters being configuredto learn to improve an evaluation of a traveling state of thehuman-powered vehicle as the component is being controlled in accordancewith the output information outputted from the output layer, wherein thelearning model is configured to execute a calculation in theintermediate layer as the input information is being inputted to theinput layer, and to output an information related to controlling thecomponent from the output layer.
 15. A computer-readable storage mediumcomprising instructions configured to be executed by a processor of acomputer, the instructions including: employing, in a case where aninput information related to a traveling of a human-powered vehicle isinputted, a neural network that outputs an output information related tocontrolling a component having a telescopic mechanism of components ofthe human-powered vehicle; acquiring the input information related tothe traveling of the human-powered vehicle; identifying the outputinformation outputted by providing the neural network with the acquiredinput information; and learning, in a case where the component iscontrolled in accordance with the identified output information,parameters in an intermediate layer of the neural network so as toimprove an evaluation of a comfortability by a rider of thehuman-powered vehicle.
 16. A control device comprising: a control unitincluding processing circuitry configured to control a telescopicmechanism in accordance with an output information related tocontrolling the telescopic mechanism, wherein the output information isoutputted from a trained machine learning model in association with aninput information related to a traveling of a human-powered vehicle, thetelescopic mechanism is a suspension of the human-powered vehicle, theoutput information includes at least one of a stroke length, a lockedstate, a spring force, and a damping rate, the suspension includes afirst member and a second member movably mounted to the first member,and the input information includes a first acceleration outputted by afirst acceleration sensor provided to the first member, and a secondacceleration outputted by a second acceleration sensor provided to thesecond member.
 17. The control device according to claim 16, wherein thelearning model outputs the output information such that a differencebetween the first acceleration and the second acceleration falls withina predetermined range.
 18. The control device according to claim 16,wherein the control unit outputs details of controlling the telescopicmechanism to a notification unit which notifies a user of the details.